﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Portal.API;

public partial class Modules_Mod_Information_InforManager : ModuleBase
{
    protected void Page_Load(object sender, EventArgs e)
    {
        LoadData();
    }
    private void LoadData()
    {
         UserControl control = new UserControl();
         Page page = (Page)HttpContext.Current.Handler;
        if (UrlRequestHandler.GetInforId()< 0)
        {
           
            control = (UserControl)page.LoadControl(PageInfor.InforList);

          
        }
        else
            control = (UserControl)page.LoadControl(PageInfor.InforDetails);



        PlaceContent.Controls.Add(control);
    }


    private static class PageInfor
    {
        public static string InforDetails = "~/Modules/Mod_Information/InformationDetail.ascx";
        public static string InforList = "~/Modules/Mod_Information/InformationList.ascx";
    }
}

